//---------------这是后台接口server总入口文件----------------------------------------------------
//--------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------
const express = require('express')
const app = express()
const bodyParser = require('body-parser')//用于使用POST
const cookieParser = require('cookie-parser')//用于使用cookie
const userRouter = require('./user')
const utils = require('utility')
//挂载操作
app.use(cookieParser())
app.use(bodyParser.json())
app.use('/user',userRouter)
app.listen(9093,function(){
    console.log('Node app start at port 9093')
})